<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Profiling</title>


<script type="text/javascript" src="../Profiler.js"></script>

<script type="text/javascript">


var stub1 = function(){};
var stub2 = function(){};

var superfunc = function () { return stub1(10) + stub2(10) }; 

var objectVar1 = {
	SUPER : function (){}, 
	SUPERARG : function (){}
}

new Profiler(function () {
	var beforeSUPER = this.SUPER;
	var beforeSUPERARG = this.SUPERARG;
	
	this.SUPER    =  stub1;
	this.SUPERARG =  stub2;
	
	superfunc();
            
	this.SUPER    =  beforeSUPER;
	this.SUPERARG =  beforeSUPERARG;
	
	return stub1(10) + stub2(10);
            
}, "SUPER with variables").run(1000000, objectVar1).report();


new Profiler(function () {
	
	return stub1(10) + stub2(10);
            
}, "SUPER with none").run(1000000, objectVar1).report();


</script>

</head>

<body>



</body>
</html>